package com.tmc.entity.inthotel;

import java.io.Serializable;

import com.tmc.bean.inthotel.hotel.City;

public class CityInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5715516758951768838L;
	private String cityName;
	private String cityNameCn;
	private String countryName;
	private String countryNameCn;
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public String getCityNameCn() {
		return cityNameCn;
	}
	public void setCityNameCn(String cityNameCn) {
		this.cityNameCn = cityNameCn;
	}
	public String getCountryName() {
		return countryName;
	}
	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}
	public String getCountryNameCn() {
		return countryNameCn;
	}
	public void setCountryNameCn(String countryNameCn) {
		this.countryNameCn = countryNameCn;
	}
	
	@Override
	public boolean equals(Object obj) {
	    if (obj instanceof CityInfo) {
	        CityInfo c = (CityInfo) obj;
	        return (cityName.equals(c.cityName));
	    }else{
	    	City city = (City) obj;
	    	return cityName.equals(city.getCityName());
	    }
    }
}
